<template>
	<view class="contact">
		<image src="/static/imgs/contact.jpeg" class="img"></image>
		<view class="info">
			<view @click="phone">联系电话: (0571)86613501 ( 点击拨打 )</view>
			<view>联系地址: 浙江省杭州市滨江区浙江中医药大学</view>
		</view>
		<map class="map" :latitude="latitude" :longitude="longitude" :markers="markers" :scale="scale"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude: 120.148123,
				latitude: 30.175579,
				scale: 15,
				markers: [
					{
						id: 1,
						longitude: 120.148123,
						latitude: 30.175579,
						iconPath: '/static/huojian.png',
						width:30,
						height:30,
				
					}
				]
			}
		},
		methods: {
			phone() {
				uni.makePhoneCall({
					phoneNumber: '86613501'
				})
			}
		}
	}
</script>

<style lang="scss">
	.contact {
		.img {
			width: 750rpx;
			height: 320rpx;
		}
		.info {
			padding: 10rpx 20rpx;
			font-size: 30rpx;
			view {
				line-height: 80rpx;
				border-bottom: 1px solid #eee;
			}
		}
		.map {
			width: 750rpx;
			height: 750rpx;
		}
	}
</style>
